package players;

import game.Pitch;
import cards.*;

public class HumanPlayer extends PitchPlayer{
	
	public HumanPlayer(String name){
		super(name);
	}
	
//--AI || Input methods
	
	public int inputBid(int lowestBid){
		
		int myBid;
		
		//show dealer their hand before they bid
		System.out.println(name + "'s hand:");
		this.hand.outputDeck();
		
				
		if(lowestBid == Pitch.NO_BID){
			myBid = userInput.bidInput(Pitch.LOW_BID, Pitch.HIGH_BID);
		} else {
			myBid = userInput.bidInput(lowestBid, Pitch.HIGH_BID);
		}
	
		return myBid;
		
	}

	
	public Card nextPlay(){
		
		System.out.println( this.name + ", your move");
		
		System.out.println("Please Enter Index of Card to Play...");
		
		this.hand.outputDeck();
		
		return hand.play(userInput.whatCard(this.hand));
		
	}
	
}